package com.hsgene.product.applets.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 小程序商品评论信息
 * @author wxf
 * @date 2018/10/11 16:27
 **/
public class AppletsGoodsCommentInfoDto implements Serializable {

    /**
     * 评论id
     */
    private String id;
    /**
     * 昵称
     */
    private String nick;
    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 默认头像
     */
    private String defaultAvatar;
    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论图片
     */
    private String imagesUrl;

    /**
     * 评论分数
     */
    private int commentLevel;
    /**
     * 点赞数量
     */
    private int likeAmount;

    /**
     * 回复数量
     */
    private int replyAmount;

    /**
     * 评论时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createDateTime;

    /**
     * 回复信息
     */
    private List<AppletsGoodsCommentReplyInfDto> replyInfDto;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDefaultAvatar() {
        return defaultAvatar;
    }

    public void setDefaultAvatar(String defaultAvatar) {
        this.defaultAvatar = defaultAvatar;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImagesUrl() {
        return imagesUrl;
    }

    public void setImagesUrl(String imagesUrl) {
        this.imagesUrl = imagesUrl;
    }

    public int getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(int commentLevel) {
        this.commentLevel = commentLevel;
    }

    public int getLikeAmount() {
        return likeAmount;
    }

    public void setLikeAmount(int likeAmount) {
        this.likeAmount = likeAmount;
    }

    public int getReplyAmount() {
        return replyAmount;
    }

    public void setReplyAmount(int replyAmount) {
        this.replyAmount = replyAmount;
    }

    public Date getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(Date createDateTime) {
        this.createDateTime = createDateTime;
    }

    public List<AppletsGoodsCommentReplyInfDto> getReplyInfDto() {
        return replyInfDto;
    }

    public void setReplyInfDto(List<AppletsGoodsCommentReplyInfDto> replyInfDto) {
        this.replyInfDto = replyInfDto;
    }
}
